package com.zker.missyou.sample.core.configuration;/*
 * ClassName: AutoPrefixConfiguration
 * Package : com.zker.missyou.sample.core.configuration
 * Description:
 * @Author zKer
 * @Create 2024/6/28 8:28
 */

import com.zker.missyou.sample.core.hack.AutoPrefixUrlMapping;
import org.springframework.boot.autoconfigure.web.servlet.WebMvcRegistrations;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;

@Component
public class AutoPrefixConfiguration implements WebMvcRegistrations {

    @Override
    public RequestMappingHandlerMapping getRequestMappingHandlerMapping() {
        return new AutoPrefixUrlMapping();
    }
}
